package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.entity.Result;
import com.itheima.pojo.OrderSetting;
import org.springframework.web.multipart.MultipartFile;
import java.util.Date;
import java.util.List;

/**
 * @Description 预约设置服务接口
 * @Author makun
 * @Date 2023/9/15 15:29
 * @Version 1.0
 */
public interface OrderSettingService extends IService<OrderSetting> {
    /**
     * 读取Excel文件，并批量上传
     * @param excelFile
     * @return
     */
    boolean upload(MultipartFile excelFile);

    /**
     * 获取某月下所有的预约设置
     * @param date
     * @return
     */
    Result getOrderSettingByMonth(Date date);

    /**
     * 通过日期更改预约设置
     * @param orderSetting
     * @return
     */
    boolean editNumberByDate(OrderSetting orderSetting);

    /**
     * 根据年月份获取预约设置情况
     * @param year
     * @param month
     * @return
     */
    List<OrderSetting> getOrderSettingByYearMonth(Integer year, Integer month);
}
